import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

import Login from '@/pages/Login.vue'
import Register from '@/pages/Register.vue'
import Profile from '@/pages/Profile.vue'
import Home from '@/pages/Home.vue'
import Editprofile from '@/pages/Editprofile.vue'
import MyCollections from '@/pages/MyCollections.vue'
import MyFollow from '@/pages/MyFollow.vue'
import Test from '@/pages/Test.vue'
import MyComments from '@/pages/MyComments.vue'
import PostDetail from '@/pages/PostDetail.vue'
import MoreComments from '@/pages/MoreComments.vue'
import Search from '@/pages/Search.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/login',
      name:'loginPage',
      component:Login
    },
    {
      path:'/register',
      name:'registerPage',
      component:Register
    },
    {
      path:'/profile',
      name:'profilePage',
      component:Profile
    },
    {
      path:'/home',
      name:'homePage',
      component:Home
    },
    {
      path:'/editprofile',
      name:'EditprofilePage',
      component:Editprofile
    },
    {
      path:'/mycollection',
      name:'MycollectionPage',
      component: MyCollections
    },
    {
      path:'/myfollow',
      name:'myFollowPage',
      component:MyFollow
    },
    {
      path:'/test',
      name:'testPage',
      component:Test
    },
    {
      path:'/mycomments',
      name:'commentPage',
      component:MyComments
    },
    {
      path:'/postdetail/:id',
      name:'postdetailPage',
      component:PostDetail
    },
    {
      path:'/morecomments/:id',
      name:'moreCommentsPage',
      component:MoreComments
    },
    {
      path:'/search',
      name:'searchPage',
      component:Search
    }
  ]
})
